<%--
  $Id: messagesInclude.jsp 46 2013-05-03 21:38:12Z gabakyan $
  $Author: gabakyan $
  $Revision: 46 $
  $Date: 2013-05-03 21:38:12 +0000 (Fri, 03 May 2013) $

  Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
  http://www.scintelligence.com/, Email: info@scintelligence.com
  All rights reserved.

  This file is part of Logistics Map.

  Logistics Map is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, version 3 of the License.

  Logistics Map is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
--%>
<%-- Error Messages --%>
<c:if test="${not empty errors}">
    <div id="errorMessages" class="warningMessages">
        <div class="error">
            <c:forEach var="error" items="${errors}">
                <c:out value="${error}"/><br />
            </c:forEach>
        </div>
    </div>
    <c:remove var="errors"/>
</c:if>

<%-- Success Messages --%>
<c:if test="${not empty successMessages}">
    <div id="successMessages">
        <div class="success">
            <c:forEach var="msg" items="${successMessages}">
                <c:out value="${msg}"/><br />
            </c:forEach>
        </div>
    </div>
    <c:remove var="successMessages" scope="session"/>
</c:if>
